package com.t1;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class A {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext("com.t1");

		B bean = annotationConfigApplicationContext.getBean("b", B.class);
		System.out.println("bean = " + bean);

	}

}
